<template>
	<view>
		<view class="index_con">
			<view class="btn btn1" @click="goto_huanzhe_list">
				<u-icon size="100" color="#aaa" name="bell"></u-icon>
				<view class="btn_text">诊断大厅</view>
			</view>
			<view class="btn btn1" @click="goto_order_list">
				<u-icon size="100" color="#aaa" name="order"></u-icon>
				<view class="btn_text">订单列表</view>
			</view>
			<view class="btn btn1" @click="goto_doc_list()">
				<u-icon size="100" color="#aaa" name="account"></u-icon>
				<view class="btn_text">医生列表</view>
			</view>
			<view class="btn btn1" @click="goto_huanzhe_list">
				<u-icon size="100" color="#aaa" name="account"></u-icon>
				<view class="btn_text">患者列表</view>
			</view>
			<view class="btn btn1" @click="goto_fenlei_list()">
				<u-icon size="100" color="#aaa" name="list-dot"></u-icon>
				<view class="btn_text">诊断大全</view>
			</view>
			<view class="btn btn1" @click="goto_yaofang_list()">
				<u-icon size="100" color="#aaa" name="file-text"></u-icon>
				<view class="btn_text">方剂大全</view>
			</view>
			<view class="btn btn1" @click="goto_caiwu()">
				<u-icon size="100" color="#aaa" name="rmb-circle"></u-icon>
				<view class="btn_text">财务信息</view>
			</view>
			<view class="btn btn1" @click="goto_article()">
				<u-icon size="100" color="#aaa" name="list-dot"></u-icon>
				<view class="btn_text">文章列表</view>
			</view>
		</view>
		<!-- <u-tabbar v-model="tab_current" :list="tab_list"></u-tabbar> -->
	</view>
</template>

<script>
	import { logout } from '@/util/api/api.js';
	
	export default {
		data() {
			return {
				tab_list:[],
				tab_current:0
			}
		},
		onLoad() {
			this.tab_list = getApp().globalData.admin_tab_list
			console.log(this.list)
		},
		methods: {
			async logout(){
				await logout()
			},
			// 进入自己对应的患者列表，如果是管理员
			goto_huanzhe_list(){
				uni.navigateTo({
					url:'/pages/doc/ht/huanzheliebiao'
				})
			},
			// 医生列表
			goto_doc_list(){
				uni.navigateTo({
					url:'/pages/user/user_list'
				})
			},
			// 物流列表
			goto_wuliu_list(){
				uni.navigateTo({
					url:'/pages/wuliu/wuliu'
				})
			},
			// 订单列表
			goto_order_list(){
				uni.navigateTo({
					url:'/pages/wuliu/wuliu'
				})
			},
			// 诊断
			goto_fenlei_list(){
				uni.navigateTo({
					url:'/pages/fenlei/fenlei'
				})
			},
			// 药方
			goto_yaofang_list(){
				uni.navigateTo({
					url:'/pages/yaofang/yaofanglist'
				})
			},
			// 财务信息
			goto_caiwu(){
				
			},
			goto_article(){
				uni.navigateTo({
					url:'/pages/article/list'
				})
			},
		}
	}
</script>

<style scoped>
page{
	width: 100%;
	height: 100vh;
	background: rgba(21, 187, 163, 0.3);
	overflow: scroll;
}
.index_con{
	width: 700rpx;
	padding: 50rpx 25rpx;
	margin: 0 25rpx;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}
.btn{
	width: 270rpx;
	height: 270rpx;
	padding: 40rpx 25rpx;
	margin: 25rpx;
	border-radius: 25rpx;
	text-align: center;
}
.btn1{
	background: rgba(255, 255, 255, 0.7);
	
}
.btn_text{
	margin-top: 50rpx;
}
</style>
